import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { MonitoringController } from './monitoring.controller';
import { MonitoringService } from './monitoring.service';
import {
  PageVisitEntity,
  UserEventEntity,
  ErrorLogEntity,
  PerformanceMetricEntity,
  ApiRequestEntity,
  UserSessionEntity
} from './entities';

@Module({
  imports: [
    TypeOrmModule.forFeature([
      PageVisitEntity,
      UserEventEntity,
      ErrorLogEntity,
      PerformanceMetricEntity,
      ApiRequestEntity,
      UserSessionEntity
    ])
  ],
  controllers: [MonitoringController],
  providers: [MonitoringService],
  exports: [MonitoringService]
})
export class MonitoringModule {}